﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._wangweihao
{
    /// <summary>
    /// 工作站
    /// </summary>
    public class Workstation : Entity<int>
    {

        /// <summary>
        /// 工作站编码
        /// </summary>
        [StringLength(64)]
        public string? WorkstationCode { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        [StringLength(255)]
        public string? WorkstationName { get; set; }

        /// <summary>
        /// 工作站地点
        /// </summary>
        [StringLength(255)]
        public string? WorkstationAddress { get; set; }

        /// <summary>
        /// 所属车间ID
        /// </summary>
        public int? WorkshopId { get; set; }

        /// <summary>
        /// 所属车间编码
        /// </summary>
        [StringLength(64)]
        public string? WorkshopCode { get; set; }

        /// <summary>
        /// 所属车间名称
        /// </summary>
        [StringLength(255)]
        public string? WorkshopName { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public int? ProcessId { get; set; }

        /// <summary>
        /// 工序编码
        /// </summary>
        [StringLength(64)]
        public string? ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [StringLength(255)]
        public string? ProcessName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [StringLength(1)]
        public string? EnableFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }
    }
}
